
package com.pair.micro.common.constant;

/**
 * 常量
 *
 * @author xubz
 */
public class Constant {
	/** 超级管理员ID */
	public static final int SUPER_ADMIN = 1;
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     *  升序
     */
    public static final String ASC = "asc";


    /**
     * 根节点标识
     */
    public static final Long ROOT = 0L;
    /**
     * 数据权限
     */
    public static final String DATA_SCOPE = "dataScope";
    /**
     * 禁用
     */
    public static final Integer DISABLE = 0;
    /**
     * 启用
     */
    public static final Integer ENABLE = 1;
    /**
     * 失败
     */
    public static final Integer FAIL = 0;
    /**
     * 成功
     */
    public static final Integer SUCCESS = 1;
    /**
     * OK
     */
    public static final String OK = "OK";
    //收费范围
    public static final String GARDEN_RANGE = "20242021";

    public static final String HOUSE_RANGE = "20242022";

    public static final String UNIT_RANGE  = "20242023";

    public static final String ROOM_RANGE  = "20242024";

    /**
     * 收费中状态
     */
    public static final String CHARGING  = "20242001";

    /**
     * 当期收费结束
     */
    public static final String CHARGE_THIS_END  = "20242002";

    /**
     * 收费结束
     */
    public static final String CHARGE_END  = "20242003";


    /**
     * 物业费
     */
    public static final String CHARGE_TYPE_PROPERTY = "20241021";
    /**
     * 车位费
     */
    public static final String CHARGE_TYPE_CAR = "20241022";

    /**
     * 车位费(临时)
     */
    public static final String CHARGE_TYPE_CASUAL_CAR = "20241028";

    /**
     * 单价*面积
     */
    public static final String UNIT_PRICE_AREA="20241011";

    /**
     * 固定费用
     */
    public static final String FIXED_COSTS="20241012";

    /**
     * 周期性费用
     */

    public static final String CYCLE_FEE="20241001";

    /**
     * 一次性费用
     */

    public static final String ONCE_FEE="20241002";


    /**
     * 常用性费用
     */

    public static final String OFTEN_FEE="20241003";


    /**
     * 房屋费用
     */
    public static final String PROJECT_TYPE_HOUSE_FEE="20242011";

    /**
     * 车位费用
     */
    public static final String PROJECT_TYPE_CAR_PLACE_FEE="20242012";





    /**
     * pgsql的driver
     */
    public static final String PGSQL_DRIVER = "org.postgresql.Driver";
	/**
	 * 菜单类型
	 * 
	 * @author xubz
	 * @date
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
    /**
     * 定时任务状态
     * 
     * @author xubz
     * @email
     * @date
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
    	NORMAL(0),
        /**
         * 暂停
         */
    	PAUSE(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }
        
        public int getValue() {
            return value;
        }
    }

    /**
     * 云服务商
     */
    public enum CloudService {
        /**
         * 七牛云
         */
        QINIU(1),
        /**
         * 阿里云
         */
        ALIYUN(2),
        /**
         * 腾讯云
         */
        QCLOUD(3);

        private int value;

        CloudService(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}
